﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="listsg.aspx.cs" Inherits="lcs.Web.project.listsg" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 <link href="/style.css" type="text/css" rel="stylesheet" />
     <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/JsTools.js" type="text/javascript"></script>
    <link href="../admin/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <link href="../admin/lib/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
    
    <script src="../admin/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
    <script src="../admin/lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
    <script src="../admin/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
    <script src="../admin/lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
    <script src="../Scripts/mybase.js"></script>
    <script src="../js/CheckBox.js"></script>
    <link href="../jquery-ui.min.css" rel="stylesheet" />    
    <script src="../js/jquery-ui.min.js"></script>
    <style type="text/css">
        td { font-size: 9pt}
        a { color:Blue; text-decoration: none}
        body{ font-size:9pt;}
     </style>

    <script type="text/javascript">        
        var win1;
        function f_open(id) {            
            var ul = '../admin/fmbug/list.aspx?id=' + id;
            win1 = $.ligerDialog.open({ url: ul, height: 400, isResize: true, width:600, showMax: false, showToggle: false, modal: true, isResize: true, slide: true, title: '操作', onClosed: function () { alert('asdf'); } });
        }
        function f_openp(id) {
            var ul = 'upfile.aspx?id=' + id;
            win1 = $.ligerDialog.open({ url: ul, height: 200, isResize: true, width: 550, showMax: false, showToggle: false, modal: true, isResize: true, slide: true, title: '操作', onClosed: function () { alert('asdf'); } });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style=" margin-top:10px; text-align :center;"> 
    <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
                <tr >
                    <td style="width: 80px" align="right" class="tdbg">
                         <b>物料名：</b>
                    </td>
                    <td class="tdbg">
                        <asp:TextBox ID="txtKeyword" runat="server" width="200px"></asp:TextBox> 
                    <asp:Button ID="btnSearch" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>                    
                        目的项目：<asp:Label ID="lbl_projectname" 
              runat="server"></asp:Label>
                    </td>
                    <td class="tdbg">
                    </td>
                </tr>
            </table>
        <asp:GridView ID="GridView2" AllowPaging="True" runat="server" AutoGenerateColumns="False" DataKeyNames="out_storage_detail_Id" OnRowDataBound="GridView2_RowDataBound"
            Width="100%" BorderWidth="0px" CellPadding="0" CellSpacing="1" CssClass="gv" GridLines="None" OnPageIndexChanging ="gridView_PageIndexChanging" PageSize="15"
            >
            <Columns>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <a href="javascript:f_openp('<%# Eval("out_storage_detail_Id") %>')" style="color: Blue">上传资料管理 </a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <a href="#" onclick="f_open(<%# Eval("out_storage_detail_Id") %>)" style="color: Blue">缺陷及处理管理</a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="material_detail_id" HeaderText="物料分码" />
                <asp:BoundField DataField="material" HeaderText="物料描述" />
                <asp:BoundField DataField="dnums" HeaderText="数量"  DataFormatString="{0:0.00}" />                
                <asp:BoundField DataField="mbm" HeaderText="物料编码" /> 
                <asp:TemplateField HeaderText="资料">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" Visible="false">下载</asp:HyperLink>
                        
                    </ItemTemplate>
                </asp:TemplateField>              
            </Columns>
            <PagerStyle CssClass="mypager" />
        </asp:GridView>
    </div>
</asp:Content>
